package com.hopes.bizz.risk.transfer.bean.dto;

import com.hopes.bizz.risk.transfer.validation.DateTime;
import com.hopes.bizz.risk.transfer.validation.Include;
import com.hopes.bizz.risk.transfer.validation.group.SeqOne;
import com.hopes.bizz.risk.transfer.validation.group.SeqTwo;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;


/**
 * @author lyb
 * @version 1.0
 * @date 2024/2/2 13:40
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class RiskBaseLogicDto extends RiskBaseDto {

    private static final long serialVersionUID = 162517261111334437L;

    @Include(allowEmpty = true, item = {"0", "1"}, message = "删除状态典项不符合字典枚举,请核对文档<<删除状态>>字典", groups = SeqOne.class)
    private String deleted = "0";

    @NotBlank(message = "创建时间为空", groups = SeqOne.class)
    @DateTime(message = "<<创建时间>>不符合时间格式", groups = SeqTwo.class)
    private String createDate;

    @NotBlank(message = "创建人为空", groups = SeqOne.class)
    private String createBy;

    @NotBlank(message = "修改时间为空", groups = SeqTwo.class)
    @DateTime(message = "<<更新时间>>不符合时间格式")
    private String updateDate;

    @NotBlank(message = "修改人为空", groups = SeqOne.class)
    private String updateBy;
}
